package 两个数组的交集;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {

        /*int[] nums1 = {1,2,2,1};
        int[] nums2 = {2,2};*/

        int[] nums1 = {4,9,5};
        int[] nums2 = {9,4,9,8,4};

        Solution solution = new Solution();
        int[] intersection = solution.intersection(nums1, nums2);
        Arrays.stream(intersection).asLongStream().forEach(System.out::println);
    }
}
